import { Http } from '@/utils/http'

/**
 * 邮箱登录
 * @param data 
 * @returns 
 */
export function requestLoginByEmail (data: any)  {
    return Http.request({
        url: '/out/user/loginByEmail',
        method: 'POST',
        data: data,
    })
}

/**
 * 邮箱注册
 * @param data 
 * @returns 
 */
export function requestRegistrationByEmail (data: any)  {
    return Http.request({
        url: '/out/user/registrationByEmail',
        method: 'POST',
        data: data,
    })
}
